package com.t.bricks.bussiness.db.entity.goodstrack.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.t.bricks.annotation.DataInfo;

/**
 * 物品追踪'GoodsTrack'表实体类
 * 警告:非数据库字段禁止在此添加,应该创建扩展实体中添加
 */
@ApiModel("物品追踪GoodsTrack")
public class GoodsTrackBase implements Serializable {

	private static final long serialVersionUID = -1L;// 使用rmi时需修改

	/**
	 * 表编号
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="GoodsTrack", sName="iId", sComment="表编号", isDbField=true, sDbFileType="bigint",
		sDefaultData="", isExtra=false, iskey=true, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=0 )
	@ApiModelProperty(value="表编号", example="")
	//[end]
	protected Long iId;

	/**
	 * 追踪码
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="GoodsTrack", sName="sTrackNo", sComment="追踪码", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=1 )
	@ApiModelProperty(value="追踪码", example="")
	//[end]
	protected String sTrackNo;

	/**
	 * 物品编号
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="GoodsTrack", sName="sGoodsId", sComment="物品编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=2 )
	@ApiModelProperty(value="物品编号", example="")
	//[end]
	protected String sGoodsId;

	/**
	 * 库存编号
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="GoodsTrack", sName="iStockId", sComment="库存编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=50, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=3 )
	@ApiModelProperty(value="库存编号", example="")
	//[end]
	protected String iStockId;

	/**
	 * 数量
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="GoodsTrack", sName="iQuantity", sComment="数量", isDbField=true, sDbFileType="int",
		sDefaultData="0", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=4 )
	@ApiModelProperty(value="数量", example="0")
	//[end]
	protected Integer iQuantity;

	/**
	 * 审核人的用户编号
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="GoodsTrack", sName="sAuditorNo", sComment="审核人的用户编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=5 )
	@ApiModelProperty(value="审核人的用户编号", example="")
	//[end]
	protected String sAuditorNo;

	/**
	 * 审核人姓名
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="GoodsTrack", sName="sAuditorName", sComment="审核人姓名", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=6 )
	@ApiModelProperty(value="审核人姓名", example="")
	//[end]
	protected String sAuditorName;

	/**
	 * 审核状态(0未审核，1通过，2不通过)
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="GoodsTrack", sName="iExamineState", sComment="审核状态(0未审核，1通过，2不通过)", isDbField=true, sDbFileType="int",
		sDefaultData="0", isExtra=false, iskey=false, isNull=true,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=7 )
	@ApiModelProperty(value="审核状态(0未审核，1通过，2不通过)", example="0")
	//[end]
	protected Integer iExamineState;

	/**
	 * 备注：用户每更新一次状态，都会在这里多加一段描述（如：张三02451 2017-04-09 15:53:17 入库;刘星02634 2017-04-12 09:23:50 出库;何明02685 2017-04-13 10:45:30 使用中）
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="GoodsTrack", sName="sMemo", sComment="备注：用户每更新一次状态，都会在这里多加一段描述（如：张三02451 2017-04-09 15:53:17 入库;刘星02634 2017-04-12 09:23:50 出库;何明02685 2017-04-13 10:45:30 使用中）", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=200, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=8 )
	@ApiModelProperty(value="备注：用户每更新一次状态，都会在这里多加一段描述（如：张三02451 2017-04-09 15:53:17 入库;刘星02634 2017-04-12 09:23:50 出库;何明02685 2017-04-13 10:45:30 使用中）", example="")
	//[end]
	protected String sMemo;

	/**
	 * 创建者
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="GoodsTrack", sName="sCreator", sComment="创建者", isDbField=true, sDbFileType="varchar",
		sDefaultData="00000001", isExtra=false, iskey=false, isNull=true,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=9 )
	@ApiModelProperty(value="创建者", example="00000001")
	//[end]
	protected String sCreator;

	/**
	 * 创建时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="GoodsTrack", sName="dCreateDate", sComment="创建时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=10 )
	@ApiModelProperty(value="创建时间", example="")
	//[end]
	protected Date dCreateDate;

	/**
	 * 修改人
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="GoodsTrack", sName="sModifieder", sComment="修改人", isDbField=true, sDbFileType="varchar",
		sDefaultData="00000001", isExtra=false, iskey=false, isNull=true,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=11 )
	@ApiModelProperty(value="修改人", example="00000001")
	//[end]
	protected String sModifieder;

	/**
	 * 修改时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="GoodsTrack", sName="dModifiedDate", sComment="修改时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=12 )
	@ApiModelProperty(value="修改时间", example="")
	//[end]
	protected Date dModifiedDate;

	/**
	 * 状态(1出厂、2入库、3出库、4使用、5过期、6作废)
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="GoodsTrack", sName="iState", sComment="状态(1出厂、2入库、3出库、4使用、5过期、6作废)", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=13 )
	@ApiModelProperty(value="状态(1出厂、2入库、3出库、4使用、5过期、6作废)", example="1")
	//[end]
	protected Integer iState;

	/**
	 * 序号
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="GoodsTrack", sName="iIndex", sComment="序号", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=14 )
	@ApiModelProperty(value="序号", example="1")
	//[end]
	protected Integer iIndex;

	/**
	 * 版本号
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="GoodsTrack", sName="iVersion", sComment="版本号", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=15 )
	@ApiModelProperty(value="版本号", example="1")
	//[end]
	protected Integer iVersion;

	/**
	 * 取 表编号
	 * @return Long
	 */
	public Long getiId() {
		return iId;
	}

	/**
	 * 设置 表编号
	 * @param iId
	 */
	public void setiId(Long iId) {
		this.iId = iId;
	}

	/**
	 * 取 追踪码
	 * @return String
	 */
	public String getsTrackNo() {
		return sTrackNo;
	}

	/**
	 * 设置追踪码
	 * @param sTrackNo
	 */
	public void setsTrackNo(String sTrackNo) {
		this.sTrackNo = sTrackNo;
	}

	/**
	 * 取 物品编号
	 * @return String
	 */
	public String getsGoodsId() {
		return sGoodsId;
	}

	/**
	 * 设置物品编号
	 * @param sGoodsId
	 */
	public void setsGoodsId(String sGoodsId) {
		this.sGoodsId = sGoodsId;
	}

	/**
	 * 取 库存编号
	 * @return String
	 */
	public String getiStockId() {
		return iStockId;
	}

	/**
	 * 设置库存编号
	 * @param iStockId
	 */
	public void setiStockId(String iStockId) {
		this.iStockId = iStockId;
	}

	/**
	 * 取 数量
	 * @return Integer
	 */
	public Integer getiQuantity() {
		return iQuantity;
	}

	/**
	 * 设置数量
	 * @param iQuantity
	 */
	public void setiQuantity(Integer iQuantity) {
		this.iQuantity = iQuantity;
	}

	/**
	 * 取 审核人的用户编号
	 * @return String
	 */
	public String getsAuditorNo() {
		return sAuditorNo;
	}

	/**
	 * 设置审核人的用户编号
	 * @param sAuditorNo
	 */
	public void setsAuditorNo(String sAuditorNo) {
		this.sAuditorNo = sAuditorNo;
	}

	/**
	 * 取 审核人姓名
	 * @return String
	 */
	public String getsAuditorName() {
		return sAuditorName;
	}

	/**
	 * 设置审核人姓名
	 * @param sAuditorName
	 */
	public void setsAuditorName(String sAuditorName) {
		this.sAuditorName = sAuditorName;
	}

	/**
	 * 取 审核状态(0未审核，1通过，2不通过)
	 * @return Integer
	 */
	public Integer getiExamineState() {
		return iExamineState;
	}

	/**
	 * 设置审核状态(0未审核，1通过，2不通过)
	 * @param iExamineState
	 */
	public void setiExamineState(Integer iExamineState) {
		this.iExamineState = iExamineState;
	}

	/**
	 * 取 备注：用户每更新一次状态，都会在这里多加一段描述（如：张三02451 2017-04-09 15:53:17 入库;刘星02634 2017-04-12 09:23:50 出库;何明02685 2017-04-13 10:45:30 使用中）
	 * @return String
	 */
	public String getsMemo() {
		return sMemo;
	}

	/**
	 * 设置备注：用户每更新一次状态，都会在这里多加一段描述（如：张三02451 2017-04-09 15:53:17 入库;刘星02634 2017-04-12 09:23:50 出库;何明02685 2017-04-13 10:45:30 使用中）
	 * @param sMemo
	 */
	public void setsMemo(String sMemo) {
		this.sMemo = sMemo;
	}

	/**
	 * 取 创建者
	 * @return String
	 */
	public String getsCreator() {
		return sCreator;
	}

	/**
	 * 设置创建者
	 * @param sCreator
	 */
	public void setsCreator(String sCreator) {
		this.sCreator = sCreator;
	}

	/**
	 * 取 创建时间
	 * @return Date
	 */
	public Date getdCreateDate() {
		return dCreateDate;
	}

	/**
	 * 设置创建时间
	 * @param dCreateDate
	 */
	public void setdCreateDate(Date dCreateDate) {
		this.dCreateDate = dCreateDate;
	}

	/**
	 * 取 修改人
	 * @return String
	 */
	public String getsModifieder() {
		return sModifieder;
	}

	/**
	 * 设置修改人
	 * @param sModifieder
	 */
	public void setsModifieder(String sModifieder) {
		this.sModifieder = sModifieder;
	}

	/**
	 * 取 修改时间
	 * @return Date
	 */
	public Date getdModifiedDate() {
		return dModifiedDate;
	}

	/**
	 * 设置修改时间
	 * @param dModifiedDate
	 */
	public void setdModifiedDate(Date dModifiedDate) {
		this.dModifiedDate = dModifiedDate;
	}

	/**
	 * 取 状态(1出厂、2入库、3出库、4使用、5过期、6作废)
	 * @return Integer
	 */
	public Integer getiState() {
		return iState;
	}

	/**
	 * 设置状态(1出厂、2入库、3出库、4使用、5过期、6作废)
	 * @param iState
	 */
	public void setiState(Integer iState) {
		this.iState = iState;
	}

	/**
	 * 取 序号
	 * @return Integer
	 */
	public Integer getiIndex() {
		return iIndex;
	}

	/**
	 * 设置序号
	 * @param iIndex
	 */
	public void setiIndex(Integer iIndex) {
		this.iIndex = iIndex;
	}

	/**
	 * 取 版本号
	 * @return Integer
	 */
	public Integer getiVersion() {
		return iVersion;
	}

	/**
	 * 设置版本号
	 * @param iVersion
	 */
	public void setiVersion(Integer iVersion) {
		this.iVersion = iVersion;
	}

}
